﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Forum
{
    public interface IForumReply
    {
        void ReplyToForum(int forumId, int userId, string replyText,ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void MarkAsAnswer(int forumReplyId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        List<Model.ForumThreadReply> GetAllReplies(int forumId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        Model.ForumThreadReply GetReplyById(int forumId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        bool IsAnswer(int forumReplyId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveRpely(int forumReplyId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);
    }
}